<?php
/**
 * sdPHP
 * @author     码农<8044023@qq.com>
 * @copyright  sdPHP
 * @license    https://gitee.com/cq8044023/sdphp
 */
use sdphp\lib\CoreBase\PortManagr;
/**
 * 配置文件
 * @var array $config  */
return array(
    /** 进程名称  */
    "ServerName"=>"sdphp",
    /** 计划任务  */
    "Task"=>array(
        array(
            'start_time' => 'Y-m-d 19:00:00',
            'end_time' => 'Y-m-d 20:00:00',
            'task_name' => 'TestTask',
            'method_name' => 'test',
            'interval_time' => '1',
        ),
    ),
    /** 启动的服务  */
    "Ports"=>array(
        //tcp长连接
        "tcp"=>array(
            "method_prefix"=>"tcp_",
            'socket_name' => '0.0.0.0',
            'socket_port' => 9705,
            'route_tool' => 'NormalRoute',//路由
            'pack_tool' => 'EofJsonPack',//包处理
            'socket_type'=>PortManagr::SOCK_TCP
        ),
        //websocket 
        "ws"=>array(
            "ws_method_prefix"=>"ws_",
            'socket_name' => '0.0.0.0',
            'socket_port' => 9704,
            'route_tool' => 'NormalRoute',
            "http_method_prefix"=>"http_",
            'socket_type'=>PortManagr::SOCK_WS,
            'server_config'=>array(
                'upload_tmp_dir' => '/home/',//上传目录
                "http_parse_post"=>false,
                'document_root' => '/root/sdphp/',
                'enable_static_handler' => true,
            )
        )
    ),
    "DataFormat"=>array(
        "model"=>"model",
        "controller"=>"controller",
        "method"=>"method",
    )
    
);

